CRIME DISTANCE VISUALISATION ON MAP BY DISTRICT

We will first observe the difference of crime by district

In [222]:
a4_dims = (20, 8.27)
fig, ax = pyplot.subplots(figsize=a4_dims)
plt.xlabel("District")
plt.ylabel("Incident number")
plt.title("Incident number by district")
sns.barplot(data=ind, x="NAME", y="INCIDENT_NUMBER");

We will now observe the number of crime on each district compared to their total population

In [231]:
sns.scatterplot(data=district, x="TOTAL_POP", y="NB_INCIDENTS",hue="NAME");

We can clearly see 2 group of district the one with high crime rate like Rowbury,Soouth End and the low crime rate like Charlestown. On the next slide we will display the crime on map by disctrict with an information on the distance to the police station to see if the high crimes district have a higer distribution of crime commited past a certain distance

In [237]:
maap_east_bo
Out[237]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [242]:
maap_south_end
Out[242]:
Make this Notebook Trusted to load map: File -> Trust Notebook

WITH MORE TIME WE COULD HAVE COMPARED EACH DISTRICT BUT BY JUSTE TAKING A DISTRICT WITH HIGH CRIME RATE COMPARED TO HIS POPULATION WE CAN SEE THAT HE HAS A LOT MORE CRIME COMMITED FAR AWAY FROM HIS POLICE STATION (don't forget you can zoom and move on map slides)

In [ ]: